package com.haste.service.impl;

import com.haste.dao.PaymentDao;
import com.haste.pojo.Payment;
import com.haste.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    @Override
    public Integer save(Payment payment) {
        return paymentDao.save(payment);
    }

    @Override
    public Payment detail(Long id) {
        return paymentDao.detail(id);
    }

    @Override
    public List<Payment> list() {
        return paymentDao.list();
    }
}
